﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DIPLib.Filters
{
    public class CompoundOperations
    {
        public static void opening(byte[] rgbData, int width, int height, byte[] structureMatrix)
        {
            Erosion.doIt(rgbData, width, height, structureMatrix);
            Dilation.doIt(rgbData, width, height, structureMatrix);
        }

        public static void closing(byte[] rgbData, int width, int height, byte[] structureMatrix)
        {
            Dilation.doIt(rgbData, width, height, structureMatrix);
            Erosion.doIt(rgbData, width, height, structureMatrix);
        }
    }
}
